using UnityEngine;

public class ObjectDisabler : MonoBehaviour
{
	public TypeGame notDisableIn;

	private void OnEnable()
	{
		if (!(GameController.instance == null) && GameController.instance.curTypeGame != notDisableIn)
		{
			base.gameObject.SetActive(false);
		}
	}
}
